﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Xms.Abp.Modularity;
//using PermissionManagement;
using Xms.Abp.ObjectMapping;

namespace IdentityManagement
{
    [DependsOn(
        typeof(IdentityManagementDomainModule),
        typeof(IdentityManagementApplicationContractsModule), 
        typeof(XmsAbpObjectMappingModule)
        //,
        //typeof(AbpPermissionManagementApplicationModule)
        )]
    public class IdentityManagementApplicationModule : XmsModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddAutoMapperObjectMapper<IdentityManagementApplicationModule>();

            Configure<AbpAutoMapperOptions>(options =>
            {
                options.AddProfile<IdentityManagementApplicationModuleAutoMapperProfile>(validate: true);
            });
        }
    }
}